<!DOCTYPE html>
<#assign path="${springMacroRequestContext.getContextPath()}">
<html>
<head>
    <meta charset="utf-8"/>
    <title>课程信息管理系统</title>
    <meta name="keywords"  />
    <meta name="description" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name='apple-touch-fullscreen' content='yes'>
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="address=no">
    <link rel="icon" href="${path}/static/images/icon/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="${path}/static/css/style.css" />
    <script src="${path}/static/javascript/jquery.js"></script>
    <script src="${path}/static/javascript/public.js"></script>
    <script src="${path}/static/javascript/plug-ins/customScrollbar.min.js"></script>
    <script src="${path}/static/javascript/pages/login.js"></script>
</head>
<base href="<%=basePath%>">
<body class="login-page">
<section class="login-contain">
    <header>
        <h1>课程信息管理系统</h1>
        <p>management system</p>
    </header>
    <form  method="post" action="${path}/User/Login">
        <div class="form-content">
            <ul>
                <li>
                    <div class="form-group">
                        <label class="control-label">登陆账号：</label>
                        <input type="text" placeholder="请输入账号" class="form-control form-underlined" value="admin" id="adminName" name="id"/>
                    </div>
                </li>
                <li>
                    <div class="form-group">
                        <label class="control-label">登陆密码：</label>
                        <input type="password" placeholder="请输入密码" class="form-control form-underlined" value="123456" id="adminPwd" name="password"/>
                    </div>
                </li>
                <li>
                    <label class="check-box">
                        <input type="checkbox" name="remember"/>
                        <span>记住账号密码</span>
                    </label>
                </li>
                <li >
                    <span  style="text-align: center;color: red;">
                        <#if info == "error">
                            用户名或密码输入错误，请重新输入！
                        </#if></span>
                </li>
                <li>
                    <button type="submit" class="btn btn-lg btn-block" >立即登录</button>
                </li>
                <li>
                    <p class="btm-info">©Copyright 2018-2019 <a href="#" target="_blank" title="DeathGhost"></a></p>
                </li>
            </ul>
        </div>
    </form>
</section>
<div class="mask">
    <form id="form1">
        <input type="hidden" id="id1" name="id">
        <input type="hidden" id="pa" name="password">
    </form>
</div>
<div class="dialog">
    <div class="dialog-hd">
        <strong class="lt-title">标题</strong>
        <a class="rt-operate icon-remove JclosePanel" title="关闭"></a>
    </div>
    <div class="dialog-bd">

    </div>
    <div class="dialog-ft">
        <button class="btn btn-info JyesBtn">确认</button>
        <button class="btn btn-secondary JnoBtn">关闭</button>
    </div>
</div>
<script type="text/javascript">
    function sub(){
        var idval = $("#userName").val();
        var pasval = $("#password").val();
        alert(idval);
        $("#id1").val(idval);
        $("#pa").val(pasval);
        document.getElementById("form1").submit();
    }

</script>
</body>
</html>